<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <h2>{{message}}</h2>
    <!-- Mustache语法中不仅仅可以直接写变量, 还可以写一些简单的表达式 -->
    <h2>{{firstName + lastName}}</h2>
    <h2>{{firstName + ' ' + lastName}}</h2>
    <h2>{{first}} {{lastName}}</h2>
    <h2>{{counter * 2}}</h2>
  </div>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        message: "你好",
        firstName: "kobe",
        lastName: "bryant",
        counter: 100
      }
    })
  </script>
</body>

</html>